package com.mad.gdrapps;

import java.io.InputStream;
import java.util.Properties;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

public class Helper  implements Constants {

	Properties props =  new Properties();

	
	
	/** public void loadProperties()  {
		   try {
			   
	            Log.d("BANGLA", "Reading text file now");
	            InputStream fis = this.getAssets().open("content.txt");
	    		props.load(fis) ;
	    		
	    		Log.d("BANGLA","props.size()::"+props.size());
	    		Log.d("BANGLA","props.toSt()::"+props.toString());
		    		
	    	} catch (Exception e) {
				e.printStackTrace();
			}
	       
	}**/
	
	private void test(){
		
	  // test methods using Collections and Enum after loading from content file. uses props and hashtable concept
		
      /**  Log.d("BANGLA", "Reading text file now");
        InputStream fis = this.getAssets().open("content");

		props.load(fis);
		Log.d("BANGLA","props.size()::"+props.size());
		
		
		Log.d("BANGLA","String representation  ::"+props.toString());
		*/
	
		
	/*	Collection<Object> coll =props.values();
		Iterator<Object> contentItr = coll.iterator();	    		
		while (contentItr.hasNext()){
			value = (String )contentItr.next();
			Log.d("BANGLA","In the iterator ::"+value);
		}
		*/
		
		
		/** Enumeration<Object> enum1 = (Enumeration<Object>)props.elements();
		while (enum1.hasMoreElements()){
			value = (String) enum1.nextElement();
			Log.d("BANGLA","In the ENUM ::"+value);
		} */
		
	/*	TextView tv1 = (TextView)findViewById(R.id.tv1);	    	
		tv1.setText((String) props.get("BEGIN"));
		
		TextView tv2 = (TextView)findViewById(R.id.tv2);	    	
		tv2.setText((String) props.get("Para1"));
		
		TextView tv3 = (TextView)findViewById(R.id.tv3);	    	
		tv3.setText((String) props.get("Para2"));
		
		TextView tv4 = (TextView)findViewById(R.id.tv4);	    	
		tv4.setText((String) props.get("Para3")); 
	*/
		
	}
	
}
